angular.module('app').controller('imgDetailCtrl', ['$rootScope', '$scope','$state','httpLoad','$stateParams','LANGUAGE',function($rootScope, $scope,$state,httpLoad,$stateParams,LANGUAGE) {
    $rootScope.moduleTitle = '容器管理 > 镜像';
    $scope.title = "镜像详情";
    $rootScope.link = '/statics/css/common.css';//引入页面样式
    (function(){
        var id = $stateParams.id;
        $scope.name = $stateParams.name;
        $scope.showDetail = $scope.isActive = true;
        httpLoad.loadData({
            url:'/img/detail',
            method:'GET',
            data: {id: id},
            success:function(data){
                if(data.success&&data.data){
                    $scope.hostDetail = data.data;
                    $scope.showDetail = $scope.isActive = true;
                }
            }
        });
    })();
    $scope.goBack = function(){
        $state.go('app.containerManger.img');
    };
}]);